<?php
/*
*
*server.php
*
*/
ini_set("soap.wsdl_cache_enabled","0");
// DECLARANDO O NAMESPACE
//$ns = 'http://panic.c3p0.ger.ufsc.br:8888/soap.php';
$ns = 'http://panic/soap.php';

// INCLUDE DA CLASSE NUSOAP
require_once('./includes/nusoap/nusoap.php');

// SETUP DO WSDL
$server = new soap_server();
$server->debug_flag=false;

$server->configureWSDL( 'panic@home', $ns );
$server->wsdl->schemaTargetNamespace = $ns;

//Registrando as Estruturas Complexas
include './includes/types.inc.php';

//Declarando as Funções
include './includes/functions.inc.php';

//Implementando as funções (Serviços)
include './includes/services.inc.php';


# DISPONIBILIZANDO OS MÉTODOS
#===========================================

$server->service( $HTTP_RAW_POST_DATA );
?>